﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014E7 RID: 5351
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UseTreasureDungeonItemScRsp : IMessage<UseTreasureDungeonItemScRsp>, IMessage, IEquatable<UseTreasureDungeonItemScRsp>, IDeepCloneable<UseTreasureDungeonItemScRsp>, IBufferMessage
	{
		// Token: 0x17004364 RID: 17252
		// (get) Token: 0x0600EF67 RID: 61287 RVA: 0x0027F6A7 File Offset: 0x0027D8A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UseTreasureDungeonItemScRsp> Parser
		{
			get
			{
				return UseTreasureDungeonItemScRsp._parser;
			}
		}

		// Token: 0x17004365 RID: 17253
		// (get) Token: 0x0600EF68 RID: 61288 RVA: 0x0027F6AE File Offset: 0x0027D8AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UseTreasureDungeonItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004366 RID: 17254
		// (get) Token: 0x0600EF69 RID: 61289 RVA: 0x0027F6C0 File Offset: 0x0027D8C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UseTreasureDungeonItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600EF6A RID: 61290 RVA: 0x0027F6C7 File Offset: 0x0027D8C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemScRsp()
		{
		}

		// Token: 0x0600EF6B RID: 61291 RVA: 0x0027F6D0 File Offset: 0x0027D8D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemScRsp(UseTreasureDungeonItemScRsp other) : this()
		{
			this.eDPHOKHAPIK_ = ((other.eDPHOKHAPIK_ != null) ? other.eDPHOKHAPIK_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EF6C RID: 61292 RVA: 0x0027F71C File Offset: 0x0027D91C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseTreasureDungeonItemScRsp Clone()
		{
			return new UseTreasureDungeonItemScRsp(this);
		}

		// Token: 0x17004367 RID: 17255
		// (get) Token: 0x0600EF6D RID: 61293 RVA: 0x0027F724 File Offset: 0x0027D924
		// (set) Token: 0x0600EF6E RID: 61294 RVA: 0x0027F72C File Offset: 0x0027D92C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonLevel EDPHOKHAPIK
		{
			get
			{
				return this.eDPHOKHAPIK_;
			}
			set
			{
				this.eDPHOKHAPIK_ = value;
			}
		}

		// Token: 0x17004368 RID: 17256
		// (get) Token: 0x0600EF6F RID: 61295 RVA: 0x0027F735 File Offset: 0x0027D935
		// (set) Token: 0x0600EF70 RID: 61296 RVA: 0x0027F73D File Offset: 0x0027D93D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EF71 RID: 61297 RVA: 0x0027F746 File Offset: 0x0027D946
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UseTreasureDungeonItemScRsp);
		}

		// Token: 0x0600EF72 RID: 61298 RVA: 0x0027F754 File Offset: 0x0027D954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UseTreasureDungeonItemScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.EDPHOKHAPIK, other.EDPHOKHAPIK) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EF73 RID: 61299 RVA: 0x0027F7A4 File Offset: 0x0027D9A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.eDPHOKHAPIK_ != null)
			{
				num ^= this.EDPHOKHAPIK.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EF74 RID: 61300 RVA: 0x0027F7F9 File Offset: 0x0027D9F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EF75 RID: 61301 RVA: 0x0027F801 File Offset: 0x0027DA01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EF76 RID: 61302 RVA: 0x0027F80C File Offset: 0x0027DA0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.eDPHOKHAPIK_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EF77 RID: 61303 RVA: 0x0027F868 File Offset: 0x0027DA68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.eDPHOKHAPIK_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EF78 RID: 61304 RVA: 0x0027F8C0 File Offset: 0x0027DAC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UseTreasureDungeonItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.eDPHOKHAPIK_ != null)
			{
				if (this.eDPHOKHAPIK_ == null)
				{
					this.EDPHOKHAPIK = new TreasureDungeonLevel();
				}
				this.EDPHOKHAPIK.MergeFrom(other.EDPHOKHAPIK);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EF79 RID: 61305 RVA: 0x0027F928 File Offset: 0x0027DB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EF7A RID: 61306 RVA: 0x0027F934 File Offset: 0x0027DB34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.eDPHOKHAPIK_ == null)
					{
						this.EDPHOKHAPIK = new TreasureDungeonLevel();
					}
					input.ReadMessage(this.EDPHOKHAPIK);
				}
			}
		}

		// Token: 0x04005E9B RID: 24219
		private static readonly MessageParser<UseTreasureDungeonItemScRsp> _parser = new MessageParser<UseTreasureDungeonItemScRsp>(() => new UseTreasureDungeonItemScRsp());

		// Token: 0x04005E9C RID: 24220
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E9D RID: 24221
		public const int EDPHOKHAPIKFieldNumber = 6;

		// Token: 0x04005E9E RID: 24222
		private TreasureDungeonLevel eDPHOKHAPIK_;

		// Token: 0x04005E9F RID: 24223
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04005EA0 RID: 24224
		private uint retcode_;
	}
}
